/* ==================================================
   I. RÉGLAGES GÉNÉRAUX
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #172033;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* ==================================================
   II. EN-TÊTE ET MENU DE NAVIGATION
================================================== */

.entete {
    width: 100%;
    min-height: 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 5%;

    background-color: #c2e091;

    border-bottom: 1px solid #e7ebf0;

    position: relative;
    z-index: 10;
}


/* 1. Logo */

.logo {
    display: flex;
    align-items: center;
}

.logo_site {
    width: 165px;
    height: 60px;
    object-fit: contain;
}


/* 2. Liens de navigation */

.nav_links ul {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
}

.link {
    display: inline-block;

    color: #263247;

    font-size: 15px;
    font-weight: 600;

    padding: 8px 0;

    transition: color 0.3s ease;
}

.link:hover,
.link.active {
    color: #176b38;
}


/* ==================================================
   III. BANNIÈRE PRINCIPALE
================================================== */

.hero {
    width: 100%;
    min-height: 520px;

    display: flex;
    align-items: center;

    padding: 70px 7%;

    background-image:
        linear-gradient(to right,
            rgba(5, 24, 45, 0.94) 0%,
            rgba(5, 35, 48, 0.82) 40%,
            rgba(5, 35, 48, 0.25) 100%),
        url("../images/ecran_large_accueil_image.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}


/* 1. Contenu de la bannière */

.hero_content {
    width: 100%;
    max-width: 650px;
}

.hero_tag {
    margin-bottom: 18px;

    color: #a8e6b7;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.2;

    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    color: #8cdda0;
}

.hero_description {
    max-width: 560px;

    margin-bottom: 30px;

    font-size: 17px;
    line-height: 1.8;

    color: #edf3f7;
}


/* 2. Bouton principal */

.bouton_principal {
    display: inline-block;

    padding: 13px 24px;

    background-color: #176b38;
    color: #ffffff;

    border-radius: 6px;

    font-size: 15px;
    font-weight: bold;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.bouton_principal:hover {
    background-color: #10542b;
    transform: translateY(-2px);
}


/* ==================================================
   IV. SECTION DE PRÉSENTATION
================================================== */

.presentation {
    padding: 80px 7%;

    background-color: #ffffff;
}

.presentation_texte {
    max-width: 900px;
    margin: 0 auto;
}

.petit_titre {
    margin-bottom: 10px;

    color: #176b38;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.section_title {
    margin-bottom: 22px;

    color: #102d55;

    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.3;
}

.section_para {
    margin-bottom: 16px;

    color: #596579;

    font-size: 16px;
    line-height: 1.9;
}

.section_para strong {
    color: #263247;
}

.lien_secondaire {
    display: inline-block;

    margin-top: 12px;

    color: #176b38;

    font-size: 15px;
    font-weight: bold;
}

.lien_secondaire:hover {
    color: #0c4825;
}


/* ==================================================
   V. SECTION DES FONCTIONNALITÉS
================================================== */

.fonctionnalites {
    padding: 75px 5% 90px;

    background-color: #f5f8fc;
}


/* 1. Titre de la section */

.section_entete {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}

.section_entete .section_title {
    margin-bottom: 15px;
}

.section_sous_titre {
    color: #647084;

    font-size: 16px;
    line-height: 1.8;
}


/* 2. Organisation des cartes */

.cards {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
    max-width: 1250px;

    margin: 0 auto;
}


/* 3. Apparence des cartes */

.carte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 28px 22px;

    background-color: #ffffff;

    border: 1px solid #e5ebf2;
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(20, 45, 80, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.carte:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 28px rgba(20, 45, 80, 0.10);
}


/* 4. Icônes */

.icone_carte {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin-bottom: 22px;

    background-color: #eaf5ed;

    border-radius: 10px;

    font-size: 27px;
}


/* 5. Titres et descriptions */

.carte h3 {
    margin-bottom: 12px;

    color: #102d55;

    font-size: 18px;
    line-height: 1.4;
}

.carte p {
    margin-bottom: 22px;

    color: #687386;

    font-size: 14px;
    line-height: 1.8;
}


/* 6. Liens des cartes */

.bouton_carte {
    margin-top: auto;

    color: #176b38;

    font-size: 14px;
    font-weight: bold;

    transition: color 0.3s ease;
}

.bouton_carte:hover {
    color: #0c4825;
}


/* ==================================================
   VI. SECTION D'INVITATION À APPRENDRE
================================================== */

.appel_action {
    padding: 70px 7%;

    text-align: center;

    background-color: #102d55;

    color: #ffffff;
}

.appel_action h2 {
    margin-bottom: 18px;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.4;
}

.appel_action p {
    max-width: 700px;

    margin: 0 auto 28px;

    color: #e1e9f3;

    font-size: 16px;
    line-height: 1.8;
}


/* ==================================================
   VII. PIED DE PAGE
================================================== */

/* =========================================
   10. PIED DE PAGE
========================================= */


/* ==================================================
   VIII. ADAPTATION AUX ÉCRANS MOYENS
================================================== */

@media screen and (max-width: 1000px) {

    .entete {
        padding: 10px 3%;
    }

    .nav_links ul {
        gap: 18px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 470px;
        padding: 60px 5%;
    }

}


/* ==================================================
   IX. ADAPTATION AUX TÉLÉPHONES
================================================== */

@media screen and (max-width: 600px) {

    /* 1. En-tête */

    .entete {
        flex-direction: column;
        gap: 12px;

        padding: 12px 15px;
    }

    .logo_site {
        width: 145px;
        height: 50px;
    }

    .nav_links {
        width: 100%;
    }

    .nav_links ul {
        display: flex;
        flex-wrap: wrap;

        justify-content: center;

        gap: 10px 20px;
    }

    .link {
        font-size: 13px;
    }


    /* 2. Bannière */

    .hero {
        min-height: 450px;

        padding: 55px 22px;

        background-position: 60% center;
    }

    .hero_tag {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero_description {
        font-size: 15px;
    }


    /* 3. Présentation */

    .presentation {
        padding: 55px 22px;
    }

    .section_title {
        font-size: 27px;
    }

    .section_para {
        font-size: 15px;
    }


    /* 4. Cartes */

    .fonctionnalites {
        padding: 55px 20px;
    }

    .section_entete {
        margin-bottom: 30px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .carte {
        padding: 24px;
    }


    /* 5. Invitation */

    .appel_action {
        padding: 50px 22px;
    }


    /* 6. Pied de page */

}